//
//  UpdateProgressView.h
//  MiBaoTu
//
//  Created by admin on 16/9/20.
//  Copyright © 2016年 com.caesartech15. All rights reserved.
//  上传进度

#import <UIKit/UIKit.h>

typedef enum {
    UpdateProgressViewType_Progress = 0,    //进行时
    UpdateProgressViewType_Success,         //成功
    UpdateProgressViewType_Faile,           //失败
}UpdateProgressViewType;

@class UpdateProgressView;
@protocol UpdateProgressViewDelegate <NSObject>

- (void)onCompleteUpdateProgeressView:(UpdateProgressView *)view;
//- (void)onCompleteUpdateProgeressView;

@end

@interface UpdateProgressView : UIView

@property (nonatomic,assign)UpdateProgressViewType type;
@property (nonatomic,assign)id<UpdateProgressViewDelegate>delegate;
@property (nonatomic,assign)int progress;
@property (nonatomic,assign)UIDeviceOrientation     orientation;

- (void)showInView:(UIView *)view;
- (void)onShowFaileContent:(UpdateProgressViewType)typeShow;

@end
